<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
				 com.scalar.chiptrack.commons.Constants" %>


<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/testRelease.do" />

<%String chipTracContext = "/" + ConfigManager.getChipTracContext(); %>

<HTML>
<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv="content-type" content="text/html; charset=UTF-8">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet"></HEAD>
<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>

<SCRIPT language="JavaScript">

var dateElement = "";
function openCalendar( dateValue )
{
    dateElement = dateValue;
    newWindow = window.open('<%=chipTracContext%>/jsp/includes/calendar.html','optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=180,height=440,resizable=no');
    newWindow.focus();
}
function assignDate( passedValue )
{
    dateElement.value=passedValue;
    window.focus();
}

function saveTestReleaseInfo()
{
    var form                    = document.testReleaseForm;
    var actionType              = form.actionType.value;
    var errors                  = "";
    var fileCtrl                = form.attachmentFile;


    if( form.poNumber.value == "" )
    {
        errors = "<li>PO Number should not be empty";
    }

    if( errors != "" )
    {
        var pa=document.getElementById("errors");
        pa.innerHTML = errors;
        return;
    }
    else
    {
        if( actionType == 'new' )
        {
            document.testReleaseForm.action = '<%=chipTracContext%>/testRelease.do?action=save';
        }
        else
        {
            document.testReleaseForm.action = '<%=chipTracContext%>/testRelease.do?action=update';
        }
        document.testReleaseForm.submit();
    }
}

function openNewLotsPopUp()
{
    var form                = document.testReleaseForm;
    var fromProcessStepId   = form.fromProcessStepId.value;
    var toVendorId          = form.toVendorId.value;
    var actionType          = form.actionType.value;
    var searchNewLotURL     = "";
    searchNewLotURL = '<%=chipTracContext%>/testRelease.do?action=searchNew&screenMode=popup&fromProcessStepId=' + fromProcessStepId + '&toVendorId=' + toVendorId + '&parentWindowActionType=' + actionType;

    var leftPos=(screen.width)?(screen.width-900)/2:100;
    var topPos=(screen.height)?(screen.height-450)/2:100;

    newWindow = window.open (searchNewLotURL,'searchNewLotPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=yes,scrollbars=yes,width=900,height=450,resizable=yes,Left= '+leftPos+',top='+topPos);
    newWindow.focus();
}

function calculateTotalPulledQty()
{
    var form            = document.testReleaseForm;
    var totalQtyPulled  = 0;
    var lotListSize     = form.hiddenLot.length;

    if( typeof( form.hiddenLot ) != "undefined" )
    {
        if( typeof( lotListSize ) == "undefined" )
        {
            totalQtyPulled = Number( form['pulledLotsList[0].qtyPulled'].value );
        }
        else
        {
            for ( k = 0; k < lotListSize; k++ )
            {
                if ( (form['pulledLotsList[' + k + '].qtyPulled'].value).length > 0 )
                {
                    totalQtyPulled += Number( form['pulledLotsList[' + k + '].qtyPulled'].value );
                }
            }
        }
        form.totalPulledQty.value = totalQtyPulled;
    }
}

function checkLength( element, size )
{
    if(	element.value.length >= size )
	{
		event.returnValue = false;
	}
}


function reset()
{
    document.testReleaseForm.reset();
}

function openAuditTrail( releaseId, releaseNumber )
{
    newWindow=window.open('<%=chipTracContext%>/releaseAuditTrail.do?action=auditTrail&releaseId='+releaseId+'&releaseNumber='+releaseNumber+'&type=<%=Constants.LOCATION_TYPE_TEST%>','releaseAuditTrailPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=600,height=600,left=100,top=50,resizable=yes');
    newWindow.moveTo(100,50);
    newWindow.focus();
}

function loadSelectedValues()
{
    var form        = document.testReleaseForm;
    var actionType  = form.actionType.value;
    form.releaseDate.disabled   = false;
    form.poNumber.disabled      = false;
    form.refreshedByUser.value  = "true";
    form.action = "<%=chipTracContext%>/testRelease.do?action=" + actionType;
    form.submit();
}

function printView( assmReleaseId )
{
	newWindow = window.open ('<%=chipTracContext%>/testRelease.do?action=printerFriendly&releaseId='+assmReleaseId,'printerFreindlyPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=800,height=550,resizable=yes');
}


function sendMail ( releaseId, category, vendor )
{
    newWindow = window.open ('<%=chipTracContext%>/releaseSendMail.do?releaseId=' + releaseId + '&vendor='+vendor+'&Category='+category+'&processType=Test','testSendMailPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=800,height=550,resizable=yes');
    newWindow.focus();
}


</SCRIPT>

<BODY bgColor="#ffffff" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" >

<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
	<TR>
    	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>
            <!-- Side Navigation start -->
            <%@ include file="/jsp/operations/releaseMenu.jsp" %>
            <!-- end of the side navigations -->
        </TD>
        <TD bgcolor="#ffffff"><IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
	    <TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
	    <TD valign="top" width="100%">
            <IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
	        <BR>
        	<html:form action="/testRelease.do" enctype="multipart/form-data" type="com.scalar.chiptrack.operations.release.forms.TestReleaseForm">
            <TABLE width="95%" align="right" cellpadding="2" cellspacing="4" border="0">
                <TR>
                    <TD colspan="4" class="NArialW" align="center">&nbsp;&nbsp;&nbsp;Test Release</TD>
                </TR>
                <tr><td colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td colspan='2' align="right"  class="NArialS">
                        <A href="javascript:printView('<bean:write name="testReleaseForm" property="releaseId"/>');"onMouseOver="window.status='Click for Printer Friendly Version';return true" onMouseOut="window.status='';return true"><B>[Printer-Friendly]</B></A>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td colspan='2' align="left"  class="NArialS">
                        <%--<A href="javascript:sendMail('<bean:write name="assmReleaseForm" property="assmReleaseId"/>');"onMouseOver="window.status='Click to Email This Assembly Release';return true" onMouseOut="window.status='';return true"><B>[E-mail this Assembly Release]</B></A>--%>
                        <a href="javascript:sendMail('<nested:write name="testReleaseForm" property="releaseId"/>','<nested:write name="testReleaseForm" property="category"/>','<nested:write name="testReleaseForm" property="toVendorName"/>');" title='Click to Mail Test Release Instructions'><B>[E-mail this Test Release]</B></a>
                    </td>
                </tr>
                <TR><TD colspan='4' align="left" class='NArialL'>&nbsp;<FONT id="errors" color='FF0000'></font></TD></TR>
                <TR><TD colspan='4' class="NArialL"><chiptrack:errors styleClass="NArialL"/></TD></TR>
			    <TR><TD colspan='4' class="NArialL"><chiptrack:info styleClass="NArialL"/></TD></TR>
                <TR><TD colspan='4' class="NArialL">&nbsp;</TD></TR>
                <TR>
                    <TD colspan='4'>
                        <html:hidden property="toVendorId"/>
                        <html:hidden property="toProcessStepId"/>
                        <html:hidden property="fromProcessStepId"/>
                        <input type="hidden" name="refreshedByPopUpScreen">
                        <input type="hidden" name="fileNameWithLocalPath">
                        <input type="hidden" name="refreshedByUser">
                        <input type="hidden" name="actionType" value="<bean:write name="actionType"/>">
                    </TD>
                </TR>
                <tr>
                    <td class="NArialL" width="25%">
                        Test Release #:<font color=red>*</font>
                    </td>
                    <td class="NArialL" width="25%">
                        <bean:write name="testReleaseForm" property="releaseNo"  />
                    </td>
                    <td class="NArialL" width="20%">
                        Release Date:
                    </td>
                    <td class="NArialL" width="25%">
                        <bean:write name="testReleaseForm" property="releaseDate"  />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Customer Name:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="customerName"  />
                    </td>
                    <td class="NArialL">
                        PO #:<font color=red>*</font>
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="poNumber" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Release Rev No:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="revisionNo"  />
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Test Part No:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="toPartNumber"  />
                    </td>
                    <td class="NArialL">
                        Assm Part No:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="fromPartNumber" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Package Type:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="packageType" />
                    </td>
                    <td class="NArialL">
                        Pin Count:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="pinCount"  />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Category:
                    </td>
                    <td class="NArialL">
                        <html:select name="testReleaseForm" property="releaseType" styleClass="txfield"  style="width:145px">
                            <html:option value="-1">--Select Req Type--</html:option>
                            <html:options property="categories"/>
                        </html:select>
                    </td>
                    <td class="NArialL">&nbsp;</td>
                    <td class="NArialL">&nbsp;</td>
                </tr>

                <jsp:include page="/jsp/common/screen_fields.jsp">
                    <jsp:param name="isView" value="true"/>
                </jsp:include>

                <tr><td colspan="4" class="NArialL">&nbsp;</td></tr>
                <tr><td colspan="4" class="NArialL">&nbsp;</td></tr>
                <bean:size id="vendorContListSize" name="testReleaseForm" property="releaseInfoVendorContactPeronsList"/>
                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF">Release Info Vendor Contact Details</font></font>
                    </td>
                </tr>
                <tr><td colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='2'></td></tr>
                <tr>
                    <td class="NArialL">
                        Vendor Name:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="toVendorName"  />
                    </td>
                    <td class="NArialL">&nbsp;</td>
                    <td class="NArialL">&nbsp;</td>
                </tr>
                <logic:greaterThan value="0" name="vendorContListSize">
                <nested:iterate property="releaseInfoVendorContactPeronsList" id="releaseInfoVendorContactPerson" indexId="idIndex" type="com.scalar.chiptrack.operations.release.ContactPerson" >
                <tr>
                    <td class="NArialL">
                        Contact Person&nbsp;<%=idIndex.intValue()+1%>:
                    </td>
                    <td class="NArialL">
                        <nested:write property="name" />
                    </td>
                    <td class="NArialL">
                        Contact Person Email&nbsp;<%=idIndex.intValue()+1%>:
                    </td>
                    <td class="NArialL">
                        <nested:write property="email" />
                    </td>
                </tr>
                </nested:iterate>
                </logic:greaterThan>
                <logic:equal value="0" name="vendorContListSize">
                    <tr><td colspan="4" class="NArialL"><font color="red">Contact Details not found</font></td></tr>
                </logic:equal>

                <tr><td colspan="4" class="NArialL">&nbsp;</td></tr>
                <bean:size id="vendorListSize" name="testReleaseForm" property="releaseInfoContactPeronsList"/>
                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF">SL Release Info Contact Details</font></font>
                    </td>
                </tr>
                <tr><td colspan='4'><IMG src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='2'></td></tr>
                <logic:greaterThan value="0" name="vendorListSize">
                <nested:iterate property="releaseInfoContactPeronsList" id="releaseInfoContactPerson" indexId="itIndex" type="com.scalar.chiptrack.operations.release.ContactPerson" >
                <tr>
                    <td class="NArialL">
                        Contact Person&nbsp;<%=itIndex.intValue()+1%>:
                    </td>
                    <td class="NArialL">
                        <nested:write property="name" />
                    </td>
                    <td class="NArialL">
                        Contact Person Email&nbsp;<%=itIndex.intValue()+1%>:
                    </td>
                    <td class="NArialL">
                        <nested:write property="email" />
                    </td>
                </tr>
                </nested:iterate>
                </logic:greaterThan>
                <logic:equal value="0" name="vendorListSize">
                    <tr><td colspan="4" class="NArialL"><font color="red">Contact Details not found</font></td></tr>
                </logic:equal>

                <tr><td colspan="4" class="NArialL" width="100%">&nbsp;</td></tr>
                <tr>
                    <td colspan="4" class="NArialL" width="100%">
                        <a href="javascript:openAuditTrail('<nested:write property="releaseId"/>','<nested:write property="releaseNo"/>')">Audit Trails</a>
                    </td>
                </tr>
                <tr><td colspan='4' align="left" class='NArialL' width="100%">&nbsp;<FONT id="lot_errors" color='FF0000'></font></td></tr>
                <TR>
                    <TD width="100%" colspan='4' class="NArialL">
                        <table width="100%" align="center" cellpadding="2" cellspacing="2" border="0">
                            <tr>
                                <td bgcolor="#993333" colspan="4" class="NArialL" align="left"><font color="#FFFFFF">Material (Lot)  information  / Other</font></td>
                            </tr>
                            <tr>
                                <td width="20%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Lot No</font></td>
                                <td width="20%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Test Lot No</font></td>
                                <td width="10%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Avail Qty</font></td>
                                <td width="10%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Issue Qty</font></td>
                            </tr>
                            <nested:iterate property="pulledLotsList" id="pulledLot" indexId="pulledLotIndex" type="com.scalar.chiptrack.operations.release.ReleaseLot" >
                            <tr <% if( pulledLotIndex.intValue() % 2 == 0 ){ %> bgcolor='#DEE1E2' <% } else { %> bgcolor='#FFFFEE' <% } %> >
                                <td class="NArialL" align="center">
                                    <nested:write property="lotNumber" />
                                </td>
                                <td class="NArialL" align="center">
                                    <nested:write property="shippedLotNumber" />
                                </td>
                                <td class="NArialL" align="center">
                                    <nested:write property="qtyAvailable" />
                                </td>
                                <td class="NArialL" align="center">
                                    <nested:write property="qtyPulled" />
                                    <input type="hidden" name="hiddenLot">
                                </td>
                            </tr>
                            </nested:iterate>
                            <tr>
                                <td width="20%"  colspan="2" align="left" class="NArialL">Running Total:</td>
                                <td width="5%" align="center" class="NArialL">
                                    &nbsp;
                                </td>
                                <td colspan="6"><bean:write name="testReleaseForm" property="totalPulledQty" /></td>
                            </tr>

                        </table>
                    </TD>
                </TR>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF">Test Spec Information</font></font>
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Select Spec File Name:
                    </td>
                    <td class="NArialL">
                        <logic:equal name="testReleaseForm" property="releaseType" value="PROD">
                            <html:select name="testReleaseForm" property="fileAttachmentSpecFileId" styleClass="txfield" onchange="javascript:loadSelectedValues();"  style="width:200px"  disabled="true">
                                <html:option value="-1">--Select Spec File Name--</html:option>
                                <%--<html:options collection="attachedSpecFileOneList" property="value" labelProperty="label"/>--%>
                                <html:optionsCollection property="attachedSpecFileOneList" value="value"/>
                            </html:select>
                        </logic:equal>
                        <logic:notEqual name="testReleaseForm" property="releaseType" value="PROD">
                            <html:select name="testReleaseForm" property="fileAttachmentSpecFileId" styleClass="txfield" onchange="javascript:loadSelectedValues();"  style="width:200px">
                                <html:option value="-1">--Select Spec File Name--</html:option>
                                <%--<html:options collection="attachedSpecFileOneList" property="value" labelProperty="label"/>--%>
                            </html:select>
                        </logic:notEqual>
                    </td>
                    <td class="NArialL">
                         Program
                    </td>
                    <td class="NArialL">
                        &nbsp;<a href="<%=chipTracContext%><%=ConfigManager.getSpecFilePathContext()%><bean:write name="testReleaseForm" property="specPhysicalFileNameEncoded"/>" target="_newWindow" onMouseOver="window.status='Please right-click & choose Save target as';return true"onmouseout="window.status='';return true" title="Please right-click & choose Save target as"><bean:write  name="testReleaseForm" property="physicalFileName"/></a>
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        Test Spec:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="testSpecFileName" />
                    </td>
                    <td class="NArialL">
                        Test Spec Rev:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="testSpecRevisionNo" />
                    </td>
                </tr>
                <bean:define name="testReleaseForm" property="releaseNo" id="releaseNo" type="java.lang.String"/>
                <tr><td colspan=4><font class="NArialL">Please <chiptrack:attachFile fileGroup="TestRelease" fileSubGroup="<%=releaseNo%>" formTitle="View Attached File(s)" linkText="click here" allowAttach="false" allowDelete="true"/> to View Attached File(s)</font></td></tr>
                <%--<tr>
                    <td class="NArialL">
                        Test Program Name:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="testProgramName" styleClass="txfield" maxlength='50' disabled="true"/>
                    </td>
                    <td class="NArialL">
                        Test Program Rev No:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="testRevisionNumber" styleClass="txfield" maxlength='50' disabled="true"/>
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Room Temp Test :
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="roomTestTemp" styleClass="txfield" maxlength='50' disabled="true"/>
                    </td>
                    <td class="NArialL">
                        Hot Temp Test :
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="hotTempTest" styleClass="txfield" maxlength='50' disabled="true"/>
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        QA Test:
                    </td>
                    <td class="NArialL">
                        <bean:write name="testReleaseForm" property="qaTest" styleClass="txfield" maxlength='50' disabled="true"/>
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                </tr>--%>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <nested:nest property="shippingContactInfo">
                <tr>
                    <td colspan="4" class="NArialL" width="100%"  align="left" bgcolor="#993333">
                        <font class="NArialL"><font color="#FFFFFF">Shipping Information</font></font>
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        After Completion Vendor:<font color=red>*</font>
                    </td>
                    <td class="NArialL">
                        <nested:select property="vendorId" styleClass="txfield" onchange="javascript:loadSelectedValues()" style="width:145px">
                            <html:option value="-1">--Select Vendor--</html:option>
                            <nested:optionsCollection property="locationsList" value="value"/>
                        </nested:select>
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                    <td class="NArialL">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Contact Person:
                    </td>
                    <td class="NArialL">
                        <nested:write property="contactPerson" />
                    </td>
                    <td class="NArialL">
                        Email:
                    </td>
                    <td class="NArialL">
                        <nested:write property="email" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL">
                        Phone:
                    </td>
                    <td class="NArialL">
                        <nested:write property="phoneNumber" />
                    </td>
                    <td class="NArialL">
                        Fax:
                    </td>
                    <td class="NArialL">
                        <nested:write property="faxNumber" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL" align='left'>
                        Address1:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="address1" />
                    </td>
                    <td class="NArialL" align='left'>
                        Address2:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="address2" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL" align='left'>
                        Address3:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="address3" />
                    </td>
                    <td class="NArialL" align='left'>
                        Address4:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="address4" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL" align='left'>
                        City:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="city" />
                    </td>
                    <td class="NArialL" align='left'>
                        State:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="state" />
                    </td>
                </tr>
                <tr>
                    <td class="NArialL" align='left'>
                        Country:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="country" />
                    </td>
                    <td class="NArialL" align='left'>
                        Zip:
                    </td>
                    <td class="NArialL" align='left'>
                        <nested:write property="zipCode" />
                    </td>
                </tr>
                </nested:nest>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        Shipping Alerts:
                    </td>
                    <td class="NArialL" colspan="3">
                        <html:textarea name="testReleaseForm" property="shipAlerts" styleClass="txfield" rows="4" cols="113" disabled='true'/>
                    </td>
                </tr>
                <tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></td></tr>
                <tr>
                    <td class="NArialL">
                        Special Instructions:
                    </td>
                    <td class="NArialL" colspan="3">
                        <html:textarea name="testReleaseForm" property="specialInstructions" styleClass="txfield" rows="4" cols="113"/>
                    </td>
                </tr>
                
                <tr><td colspan="4" align="center">&nbsp;</td></tr>
            </TABLE>
            </html:form>
<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>

<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->

</BODY>
</HTML>

<%--
<%}catch(Exception e){e.printStackTrace();}%>--%>
